﻿package ui 
{
	import flash.display.MovieClip;
	import flash.text.*
	/**
	 * ...
	 * @author 
	 */
	public class RayButton extends MovieClip
	{
		private var _buttonLable:String
		public function RayButton() 
		{
			this.txt.mouseEnabled = false;
			this.buttonMode = true;
			
			this.txt.autoSize=TextFieldAutoSize.CENTER
			if(_buttonLable)
				this.txt.text = _buttonLable;
		}
		//按钮lable文本
		public function get buttonLable():String { return _buttonLable; }
		public function set buttonLable(value:String):void 
		{ 
			_buttonLable = value;
			this.txt.text = _buttonLable;
		}
	}

}